<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.Donate"%>
<%@page import="bean.Funding_information"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
	<head>
		<title>捐赠使用</title>
		<link rel="shortcut icon" href="images/titleico.ico" />
		<link href="css/myA.css" type="text/css" rel="stylesheet">
		<link href="css/myCss.css" type="text/css" rel="stylesheet">
	</head>
	<body>

		<%
			ArrayList<Donate> donate_list = (ArrayList<Donate>) session
					.getAttribute("donate_list");
			ArrayList<Funding_information> funding_information_list = (ArrayList<Funding_information>) session
					.getAttribute("funding_information_list");
			if (donate_list == null) {
				response.sendRedirect("donate?page=sy_index.jsp");
			} else if (funding_information_list == null) {
				response.sendRedirect("funding_information?page=sy_index.jsp");
			}
		%>
		<jsp:include page="top.jsp"></jsp:include>
		<table align="center" cellpadding="0" cellspacing="0" width="960">
			<tr>
				<td valign="top">
					<jsp:include page="leftshow.jsp"></jsp:include>
				</td>
				<td valign="top">
					<table cellpadding="0" cellspacing="0" width="640" align="right">
						<tr>
							<td>
								<hr width="630" color="#CC9966" align="right" />
							</td>
						</tr>
						<tr>
							<td style="padding-left: 20">
								<img src="images/jztj.gif" />
							</td>
						</tr>

						<tr>
							<td>
								<hr width="630" color="#CC9966" align="right" />
							</td>
						</tr>

						<tr>
							<td>
								<table cellpadding="2" cellspacing="0" width="600"
									align="center">
									<c:forEach items="${donate_list1}" var="donate">
										<tr style="font-size: 10">
											<td>
												${donate.donate_name}
											</td>
											<td>
												${donate.donate_price}
											</td>
											<td>
												${donate.donate_need}
											</td>
											<td   align="center">
												${donate.donate_date}
											</td>
										</tr>
									</c:forEach>
								</table>
							</td>

						</tr>
						<tr>
							<td
								style="padding-left: 530; padding-top: 15; padding-bottom: 15; font-size: 12px">
								<a href="thanks.jsp" class="style1">更多>></a>
							</td>
						</tr>

					</table>

					<table cellpadding="0" cellspacing="0" align="right">
						<tr>
							<td>
								<hr width="630" color="#CC9966" align="right" />
							</td>
						</tr>
						<tr>
							<td style="padding-left: 20">
								<img src="images/n_zzxx.jpg" />
							</td>
						</tr>

						<tr>
							<td>
								<hr width="630" color="#CC9966" align="right" />
							</td>
						</tr>

						<tr>
							<td>
								<table cellpadding="2" cellspacing="0" align="center"
									width="630">
									<c:forEach items="${funding_information_list1}"
										var="funding_information">
										<tr style="font-size: 10">
											<td >
												<a href="newsshow_d.jsp?id=${funding_information.id }" class="style1"
													title="${funding_information.donate_title}">·${funding_information.donate_title}</a>
											</td>
											<td class="style1"> 
												[${funding_information.funding_information_date}]
											</td>
										</tr>
									</c:forEach>
								</table>
							</td>
						</tr>
						<tr>
							<td
								style="padding-left: 520; padding-top: 15; padding-bottom: 15; font-size: 12px">
								<a href="news_d.jsp" class="style1">更多>></a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<jsp:include page="bottom.jsp"></jsp:include>
		
		<%
			if(donate_list != null && funding_information_list != null) {
				session.removeAttribute("donate_list");
				session.removeAttribute("photo_news_list");
				session.removeAttribute("funding_information_list");
			}
		%>
	</body>
</html>